﻿#if UNITY_STANDALONE || UNITY_ANDROID || UNITY_IOS || UNITY_WSA || UNITY_WEBGL
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;

namespace Example2 
{
    public class InputJump : MonoBehaviour, IPointerDownHandler, IPointerUpHandler
    {
        public static bool IsJump;

        public void OnPointerDown(PointerEventData eventData)
        {
            IsJump = true;
        }

        public void OnPointerUp(PointerEventData eventData)
        {
            IsJump = false;
        }
    }
}
#endif